//
//  DetailViewController.m
//  UI-08 HomeWork通讯录
//
//  Created by dllo on 16/7/25.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "DetailViewController.h"

@interface DetailViewController ()
@property (nonatomic, strong) UILabel *detailLabel;
@property (nonatomic, strong) UITextField *detailTextField;
@end

@implementation DetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationController.navigationBar.translucent = NO;
    self.view.backgroundColor = [UIColor blueColor];
    self.detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 50, 414 - 100, 736)];
    [self.view addSubview:_detailLabel];
    _detailLabel.numberOfLines = 0;
    _detailLabel.text = [NSString stringWithFormat:@"姓名:%@ 年龄:%ld 性别:%@ 电话号码:%@",self.name,self.age,self.gender,self.phoneNumber];
    _detailLabel.textColor = [UIColor whiteColor];
    [_detailLabel sizeToFit];
    NSLog(@"%@",self.gender);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
